package com.example.redo.learnlog;

import android.nfc.Tag;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {
    private  static final String TAG = "MainActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        System.out.println("普通日志Info");   //java自带的日志aoi
        System.err.println("错误日志Warn");   //java自带的日志api

        Log.e(TAG,"错误信息");  //android的日志api。error
        Log.w(TAG,"警告信息");  //android的日志api。warning
        Log.i(TAG,"普通信息");  //android的日志api。information
        Log.d(TAG,"调试信息");  //android的日志api。debug
        Log.v(TAG,"无用信息");  //android的日志api。verbose
    }
}
